package com.ming.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 啥也不干 专门负责跳转页面
 */
@Controller
@RequestMapping("page")
public class PageController {

    @RequestMapping("main.do")
    public String main(String[] args) {
        return "main";
    }

    @RequestMapping("/user/list.do")
    public String userList() {
        return "user/list";
    }

    @RequestMapping("ebook/list.do")
    public String customerList() {
        return "ebook/list";
    }


    @RequestMapping("book/list.do")
    public String carList() {
        return "book/list";
    }

    @RequestMapping("comment/list.do")
    public String comment(String[] args) {
        return "comment/list";
    }

    /**
     * 借书记录
     *
     * @return
     */
    @RequestMapping("rent/list.do")
    public String rentList() {
        return "rent/list";
    }

    //还书记录
    @RequestMapping("return/list.do")
    public String returnList() {
        return "return/list";
    }

    /**
     * 角色列表
     * @return
     */
    @RequestMapping("role/list.do")
    public String roleList() {
        return "role/list";
    }

    /**
     * 权限列表
     * @return
     */
    @GetMapping("perm/list.do")
    public String permissionList() {
        return "permission/list";
    }

}
